const Service = require('egg').Service;

class RegisterService extends Service {
    async index(params) {
        const { app } = this
        try {
            let result = app.mysql.insert('user', params)
            return {
                msg:'注册成功',
                code: 1
            }
        } catch(err) {
            return err
        }
        
    }
}

module.exports = RegisterService